<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>NPanday - Remote Repository Configuration</title>
    <style type="text/css" media="all">
      @import url("../css/maven-base.css");
      @import url("../css/maven-theme.css");
      @import url("../css/site.css");
    </style>
    <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      </head>
  <body class="composite">
    <div id="banner">
                    <span id="bannerLeft">
    
                                            <img src="../." alt="" />
    
            </span>
                          <span id="bannerRight">
    
                                            <img src=".././images/logo-home.png" alt="" />
    
            </span>
            <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
  
  
    
            <div class="xleft">
        Last Published: 2010-01-21
                      </div>
            <div class="xright">      
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
  
  
    
                   <h5>General Info</h5>
            <ul>
              
    <li class="none">
                    <a href="../index.html">NPanday Overview</a>
          </li>
              
    <li class="none">
                    <a href="../release-notes.html">NPanday Release Notes</a>
          </li>
              
    <li class="none">
                    <a href="../faqs.html">NPanday FAQs</a>
          </li>
              
    <li class="none">
                    <a href="../workarounds.html">NPanday Workarounds</a>
          </li>
              
    <li class="none">
                    <a href="../plugins/index.html">NPanday Plugins</a>
          </li>
              
    <li class="none">
                    <a href="../conventions.html">Conventions</a>
          </li>
          </ul>
              <h5>Getting Started</h5>
            <ul>
              
                
              
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="../installation/index.html">Installation</a>
                </li>
              
                
              
      
            
      
              
        <li class="collapsed">
                    <a href="../installation/uninstall.html">Uninstall NPanday</a>
                </li>
              
    <li class="none">
                    <a href="../guide/build_tool.html">Using the Build Tool</a>
          </li>
              
    <li class="none">
                    <a href="../guide/dependencies.html">Project Dependencies</a>
          </li>
              
    <li class="none">
                    <a href="../guide/install_file.html">Installing Files Manually</a>
          </li>
              
    <li class="none">
                    <a href="../guide/simple_project.html">Creating a Simple Project</a>
          </li>
              
    <li class="none">
                    <a href="../guide/load_project.html">Loading Project/Solution</a>
          </li>
              
    <li class="none">
                    <a href="../guide/quickstart.html">Quick Start</a>
          </li>
              
    <li class="none">
                    <a href="../guide/portability.html">Portability</a>
          </li>
          </ul>
              <h5>IDE Integration</h5>
            <ul>
              
    <li class="none">
                    <a href="../ide/execute_goals.html">Executing Maven Goals</a>
          </li>
              
    <li class="none">
                    <a href="../ide/assembly_key.html">Setting Assembly Key</a>
          </li>
              
    <li class="none">
              <strong>Remote Repository</strong>
        </li>
              
    <li class="none">
                    <a href="../ide/settings.html">Using Custom Settings</a>
          </li>
              
    <li class="none">
                    <a href="../ide/importing.html">Importing Projects</a>
          </li>
              
    <li class="none">
                    <a href="../ide/artifacts.html">Repository Artifacts</a>
          </li>
              
    <li class="none">
                    <a href="../ide/references.html">Project References</a>
          </li>
              
    <li class="none">
                    <a href="../ide/web_references.html">Web References</a>
          </li>
              
                
              
      
            
      
              
        <li class="collapsed">
                    <a href="../ide/release.html">Releasing Project</a>
                </li>
              
    <li class="none">
                    <a href="../ide/test.html">Integration Test</a>
          </li>
          </ul>
              <h5>Project Information</h5>
            <ul>
              
    <li class="none">
                    <a href="../..">NPanday Site</a>
          </li>
              
    <li class="none">
                    <a href="https://npanday.svn.codeplex.com/svn/" class="externalLink">NPanday SVN</a>
          </li>
              
    <li class="none">
                    <a href="http://maven.apache.org/" class="externalLink">Maven</a>
          </li>
              
    <li class="none">
                    <a href="http://www.mono-project.com/" class="externalLink">Mono Project</a>
          </li>
              
    <li class="none">
                    <a href="http://dotgnu.org/" class="externalLink">DotGNU</a>
          </li>
          </ul>
              <h5>Project Documentation</h5>
            <ul>
              
                
              
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="../project-info.html">Project Information</a>
                </li>
          </ul>
                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img alt="Built by Maven" src="../images/logos/maven-feather.png"></img>
          </a>
                       
  

  
    
  
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="section"><h2>Remote Repository Configuration</h2>
<p>A remote Maven repository can be configured using the Visual Studio IDE or it can be configured manually by adding information to the settings file.</p>
<div class="section"><h3>Automatically Configure a Remote Maven Repository via the IDE</h3>
<p>To access a remote Maven repository you can configure it from within Visual Studio. Visual Studio must be open, the NPanday Build System must be running, and you must have a project loaded. Then:</p>
<ol type="1"><li>Right-click on a project and select Add Maven Artifact... from the menu.</li>
<li>In the Add Maven Artifact pop-up window, click the Configure Repository tab.</li>
<li>Select the URL of the repository in the pop-up window.<br />
.<img src="../images/remote_repo.jpg" alt="Sample configuration for Remote Repository" /></li>
<li>If the remote repository allows snapshots or released artifacts to be stored there, then check the appropriate box.</li>
<li>Click Update. This will save the configuration to <tt>C:\Documents and Settings\[user_home]\.m2\settings.xml</tt>. To edit multiple repositories, repeat steps 3 to 5 by selecting another repository to be configured form the drop down list.</li>
<li>Click Close when done configuring the repository.<p>NOTE: The repository is stored in a profile NPanday.id this profile is then added into the activeProfiles list as soon as an NPanday remote repository is added. </p>
</li>
</ol>
</div>
<div class="section"><h3>Manually Configure a Remote Maven Repository</h3>
<p>To manually add a remote repository, add the following lines in your <tt>C:\Documents and Settings\[user_home]\.m2\settings.xml</tt> file within the <tt> &lt;profiles&gt; </tt> <tt> &lt;/profiles&gt; </tt> tag. Modify the values for the <tt> &lt;repository&gt; </tt> and <tt> &lt;id&gt; </tt>elements with the repository url you want to access.</p>
<div class="source"><pre>&lt;profile&gt;
      &lt;activation&gt;
        &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
      &lt;/activation&gt;
      &lt;repositories&gt;
        &lt;repository&gt;
          &lt;releases&gt;
            &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/releases&gt;
          &lt;snapshots&gt;
            &lt;enabled&gt;false&lt;/enabled&gt;
          &lt;/snapshots&gt;
          &lt;id&gt;http://repo1.maven.org/maven2/&lt;/id&gt;
          &lt;url&gt;http://repo1.maven.org/maven2/&lt;/url&gt;
        &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;id&gt;NPanday.id&lt;/id&gt;
&lt;/profile&gt;</pre>
</div>
<p>If the remote repository allows the snapshots or release artifacts to be stored then add the following lines:</p>
<div class="source"><pre>&lt;profile&gt;
      &lt;activation&gt;
        &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
      &lt;/activation&gt;
      &lt;repositories&gt;
        &lt;repository&gt;
          &lt;releases/&gt;
          &lt;snapshots/&gt;
          &lt;id&gt;http://repo1.maven.org/maven2/&lt;/id&gt;
          &lt;url&gt;http://repo1.maven.org/maven2/&lt;/url&gt;
        &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;id&gt;NPanday.id&lt;/id&gt;
&lt;/profile&gt;</pre>
</div>
</div>
</div>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2010
    
          NPanday
          
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
